import request from '@/utils/request'

export function loginByAcctno(params) {
  return request({
    url: '/openApi/lawyer/loginByAcctno',
    method: 'get',
    params: params
  })
}

export function lawyerFindLawyerById(params) {
  return request({
    url: '/lawyerApi/lawyer/findLawyerById',
    method: 'get',
    params: params
  })
}

export function getOpenid(params) {
  return request({
    url: '/lawyerApi/lawyer/getOpenid',
    method: 'get',
    params: params
  })
}

export function lawyerUpdateLawyerById(data) {
  return request({
    url: '/lawyerApi/lawyer/updateLawyerById',
    method: 'put',
    data: data
  })
}

export function loginByOpenid(params) {
  return request({
    url: '/openApi/lawyer/loginByOpenid',
    method: 'get',
    params: params
  })
}

export function studentFindLawyerById(params) {
  return request({
    url: '/studentApi/lawyer/findLawyerById',
    method: 'get',
    params: params
  })
}

export function studentSelectLawyer(params) {
  return request({
    url: '/studentApi/lawyer/selectLawyer',
    method: 'get',
    params: params
  })
}

export function lawyerBindWechatById(data) {
  return request({
    url: '/lawyerApi/lawyer/bindWechatById',
    method: 'put',
    data: data
  })
}
